package com.account.domains;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 本金账户流水
 * </p>
 *
 * @author ganhuaicheng
 * @since 2017-09-19
 */
@TableName("account_cash_flow")
public class AccountCashFlow implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 自增id
	 */
	@TableId(type = IdType.AUTO)
	private Long id;

	/**
	 * 用户id
	 */
	@TableField(value="customer_id")
	private Long customerId;

	/**
	 * 交易号
	 */
	private String dealsn;

	/**
	 * 金额(单位:分)
	 */
	@TableField(value="current_amount")
	private BigDecimal currentAmount;

	/**
	 * 帐户类型: 1:帐户馀额1;2:帐户馀额2;3:帐户馀额3
	 */
	@TableField(value="in_account_type")
	private Integer inAccountType;

	/**
	 * 交易类型　1:代扣 2:划拨
	 */
	@TableField(value="deal_type")
	private Integer dealType;

	/**
	 * 三方id（0:内部交易 1：连连）
	 */
	@TableField(value="third_num")
	private Integer thirdNum;

	/**
	 * 逻辑删除标记  0：有效;1：删除
	 */
	@TableField(value="is_delete")
	private Integer isDelete;

	/**
	 * 创建时间
	 */
	@TableField(value="create_time")
	private Date createTime;

	/**
	 * 更新时间
	 */
	@TableField(value="update_time")
	private Date updateTime;



	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	public String getDealsn() {
		return dealsn;
	}

	public void setDealsn(String dealsn) {
		this.dealsn = dealsn;
	}

	public BigDecimal getCurrentAmount() {
		return currentAmount;
	}

	public void setCurrentAmount(BigDecimal currentAmount) {
		this.currentAmount = currentAmount;
	}

	public Integer getInAccountType() {
		return inAccountType;
	}

	public void setInAccountType(Integer inAccountType) {
		this.inAccountType = inAccountType;
	}

	public Integer getDealType() {
		return dealType;
	}

	public void setDealType(Integer dealType) {
		this.dealType = dealType;
	}

	public Integer getThirdNum() {
		return thirdNum;
	}

	public void setThirdNum(Integer thirdNum) {
		this.thirdNum = thirdNum;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
